package com.dsp.cart.client;

import com.dsp.cart.client.dto.OrderDTO;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "order")
public interface OrderClient {

    /**
     * 生成订单.
     *
     * @param orderDTO 实体对象
     * @return true 成功
     */
    @RequestMapping(value = "/create",method = RequestMethod.POST)
    @Hmily
    OrderDTO create(@RequestBody OrderDTO orderDTO);
}
